<?php

class cell{

	private $c;
	private $items = array();


	public function __construct(coord $c){
/*{{{*/
		$this -> c = $c;
/*}}}*/
	}

	public function addItem(item $item){
/*{{{*/
		$id = $item -> getId();
		$this -> items[$id] = $id;
/*}}}*/
	}

	public function removeItem(item $item){
/*{{{*/
		$id = $item -> getId();
		unset($this -> items[$id]);
/*}}}*/
	}

	public function getItemsCnt(){
/*{{{*/
		return sizeof($this -> items);
/*}}}*/
	}

	public function getItemsSymbols(){
/*{{{*/
		$sLabel = '';

		foreach($this -> items as $i => $j){
			$it = item::getItemById($j);
			$sLabel .= $it -> getMetric() . ' ';
		}

		return $sLabel;/*}}}*/
	}

}


?>
